/*----------------------------------------------------------------------------
*         ATMEL Microcontroller Software Support  -  ROUSSET  -
*----------------------------------------------------------------------------
* The software is delivered "AS IS" without warranty or condition of any
* kind, either express, implied or statutory. This includes without
* limitation any warranty or condition with respect to merchantability or
* fitness for any particular purpose, or against the infringements of
* intellectual property rights of others.
*----------------------------------------------------------------------------
* File Name           : Board.h
* Object              : AT91SAM7S Evaluation Board Features Definition File.
*
* Creation            : JG   02/Jul/2008
*----------------------------------------------------------------------------
*/
#ifndef Board_h
#define Board_h

//#include <AT91SAM7S256.H>
#include <AT91SAM7S64.H>
#include <lib_AT91SAM7S64.h>

#define true	-1
#define false	0

/*-------------------------------*/
/* SAM7Board Memories Definition */
/*-------------------------------*/

#define  FLASH_PAGE_NB		1024
#define  FLASH_PAGE_SIZE	256

/*--------------*/
/* Master Clock */
/*--------------*/

#define	EXT_OC			18432000							// External oscilator MAINCK
#define	MUL				25									//PLL Multiplier 
#define	DIV	 			5									//PLL Divider
#define	PRESCALER		2									//Final Prescaler divider
#define MCK             ((MUL+1)*EXT_OC)/(DIV*PRESCALER)	//Master Clock in Mhz
#define MCKKHz          (MCK/1000)        					//Master Clock in Khz

#ifndef AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL
#define AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE
#endif

#ifndef AT91C_AIC_SRCTYPE_INT_POSITIVE_EDGE
#define AT91C_AIC_SRCTYPE_INT_POSITIVE_EDGE AT91C_AIC_SRCTYPE_INT_EDGE_TRIGGERED
#endif


#endif /* Board_h */
